
 const Mock = require("../../node_modules/mockjs")
var Random = Mock.Random

// 第二
const users = []
    for (var i = 0; i < 10; i++) {
        var  user = {
            "name": Random.cname(),
            "age": Random.natural(15, 30),
            "aderss": Random.county(true),
            "phone": Mock.mock(/^1[0-9]{10}$/),
            "date": Random.date('yyyy-MM-dd'),
            "remark": Random.cparagraph(2)
        }
     users.push(user)
    }
     console.log(users)

 Mock.mock("/getData", "get", users )
   

   


